package com.sgb.kjwl.model.entity.lease;

import android.text.TextUtils;

import java.io.Serializable;
import java.text.DecimalFormat;


public class LeaseOrderListEntity implements Serializable {

    /**
     * rentalPrice : 1000
     * orderNo : 202011179000000
     * address : 产品地址
     * createTime : 1605584860626
     * rentalPriceUnitNo : 1212
     * rentalTime : 1
     * rentalPriceUnitName : "元/月"
     * title : 121
     * picture : 21212
     * status : 1
     */

    private String rentalPrice;
    private String orderNo;
    private String address;
    private String createTime;
    private String rentalPriceUnitNo;
    private String rentalTime;
    private String rentalPriceUnitName;
    private String title;
    private String picture;
    private String status;
    private String receiveOderPice;//实收金额
    private String rentalTotalPrice;
    private String buyerCompanyName;
    private String buyerUserName;
    private String sellerCompanyName;
    private String sellerUserName;
    private String approvalStatus;//审批状态  1 审批中 2 审批通过 3 已拒绝  空字符 无审批
    private String haveRate;//单价是否是含税价 （0 否， 1 是）
    private String haveDriver;//单价是否是含驾驶员价格（ 0否，1是）
    private String transportPrice;//运输费
    private String rentalTimeUnit; //时间单位
    private String rentalNum;
    private String isSelf;//是否自营(0：否，1：是)
    private String orderType;// 判断 1公司 2个人
    private String newRentalPrice;//修改后的单价

    private String driverProvider;//驾驶员提供方 ：1求租方 2出租方
    private String buyerNeedInvoice;//买家是否需要开发票：0否 1是
    private String module;//1机械，2 设备

    public String getDriverProvider() {
        return driverProvider;
    }

    public void setDriverProvider(String driverProvider) {
        this.driverProvider = driverProvider;
    }

    public String getBuyerNeedInvoice() {
        return buyerNeedInvoice;
    }

    public void setBuyerNeedInvoice(String buyerNeedInvoice) {
        this.buyerNeedInvoice = buyerNeedInvoice;
    }

    public String getModule() {
        return module;
    }

    public void setModule(String module) {
        this.module = module;
    }

    public String getOrderType() {
        return orderType;
    }

    public void setOrderType(String orderType) {
        this.orderType = orderType;
    }

    public String getNewRentalPrice() {
        return newRentalPrice;
    }

    public void setNewRentalPrice(String newRentalPrice) {
        this.newRentalPrice = newRentalPrice;
    }

    public String getRentalPrice() {
        return rentalPrice;
    }

    public void setRentalPrice(String rentalPrice) {
        this.rentalPrice = rentalPrice;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getRentalPriceUnitNo() {
        return rentalPriceUnitNo;
    }

    public void setRentalPriceUnitNo(String rentalPriceUnitNo) {
        this.rentalPriceUnitNo = rentalPriceUnitNo;
    }

    public String getRentalTime() {
        if (TextUtils.isEmpty(rentalTime)) {
            rentalTime = "1";
        }
        return rentalTime;
    }

    public void setRentalTime(String rentalTime) {
        this.rentalTime = rentalTime;
    }

    public String getRentalPriceUnitName() {
        return rentalPriceUnitName;
    }

    public void setRentalPriceUnitName(String rentalPriceUnitName) {
        this.rentalPriceUnitName = rentalPriceUnitName;
    }

    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getPicture() {
        return picture;
    }

    public void setPicture(String picture) {
        this.picture = picture;
    }

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getRentalTotalPrice() {
        return rentalTotalPrice;
    }

    public void setRentalTotalPrice(String rentalTotalPrice) {
        this.rentalTotalPrice = rentalTotalPrice;
    }

    public String getReceiveOderPice() {
        if (!TextUtils.isEmpty(transportPrice) && Double.parseDouble(transportPrice) > 0) {
            double total = Double.parseDouble(transportPrice) + Double.parseDouble(receiveOderPice);
            return new DecimalFormat("#0.00").format(total);
        }
        return receiveOderPice;
    }

    public void setReceiveOderPice(String receiveOderPice) {
        this.receiveOderPice = receiveOderPice;
    }

    public String getBuyerCompanyName() {
        return buyerCompanyName;
    }

    public void setBuyerCompanyName(String buyerCompanyName) {
        this.buyerCompanyName = buyerCompanyName;
    }

    public String getBuyerUserName() {
        return buyerUserName;
    }

    public void setBuyerUserName(String buyerUserName) {
        this.buyerUserName = buyerUserName;
    }

    public String getSellerCompanyName() {
        return sellerCompanyName;
    }

    public void setSellerCompanyName(String sellerCompanyName) {
        this.sellerCompanyName = sellerCompanyName;
    }

    public String getSellerUserName() {
        return sellerUserName;
    }

    public void setSellerUserName(String sellerUserName) {
        this.sellerUserName = sellerUserName;
    }

    public String getApprovalStatus() {
        return approvalStatus;
    }

    public void setApprovalStatus(String approvalStatus) {
        this.approvalStatus = approvalStatus;
    }

    public String getHaveRate() {
        return haveRate;
    }

    public void setHaveRate(String haveRate) {
        this.haveRate = haveRate;
    }

    public String getHaveDriver() {
        return haveDriver;
    }

    public void setHaveDriver(String haveDriver) {
        this.haveDriver = haveDriver;
    }

    public String getTransportPrice() {
        return transportPrice;
    }

    public void setTransportPrice(String transportPrice) {
        this.transportPrice = transportPrice;
    }

    public String getRentalTimeUnit() {
        return rentalTimeUnit;
    }

    public void setRentalTimeUnit(String rentalTimeUnit) {
        this.rentalTimeUnit = rentalTimeUnit;
    }

    public String getRentalNum() {
        return rentalNum;
    }

    public void setRentalNum(String rentalNum) {
        this.rentalNum = rentalNum;
    }

    public String getIsSelf() {
        return isSelf;
    }

    public void setIsSelf(String isSelf) {
        this.isSelf = isSelf;
    }
}
